import Fl from '@/views/fl.vue'
import Gwc from '@/views/gwc.vue'
import Home from '@/views/home.vue'
import Sy from '@/views/sy.vue'
import Wd from '@/views/wd.vue'
import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path:'/',
      redirect:'/home/sy'
    },
    {
      path: '/home',
      component: Home,
      children:[
        {
          path: 'sy',
      component: Sy,
        },
        {
          path: 'fl',
      component: Fl,
        },
        {
          path: 'gwc',
      component: Gwc,
        },
        {
          path: 'wd',
      component: Wd,
        },
      ]
    },
  ],
})

export default router
